package com.example.model.query;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.model.entity.TEquipment;
import com.example.model.entity.TEquipmentPart;
import com.example.model.entity.TSource;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

/**
 *  实体类
 *
 * @author zhangr
 * @Description Created on 2020-12-11
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TEquipmentQuery extends Page<TEquipment> {

    /**
     * 设备id
     */
    private String equipmentId;

    /**
     * 设备名
     */
    private String equipmentName;

    /**
     * 设备编号
     */
    private String equipmentNum;

    /**
     * 所属区域
     */
    private String areaId;
    private String areaName;

    /**
     * 设备状态
     */
    private Long status;

    /**
     * 有效性
     */
    private Long isValid;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createDate;

    /**
     * 修改时间
     */
    private LocalDateTime updateDate;

    /**
     * 备注
     */
    private String remarks;
    //设备路数
    private int partNum;
    private List<TEquipmentPartQuery> equipmentPartList;


}
